package com.question.service;

import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;

import com.common.util.TablePage;
import com.question.entity.Judgment;
import com.question.entity.dto.JudgmentDTO;

public interface IJudgmentService {
	public void saveOrUpdate(Judgment judgment,Long subjectId,String answerContent);
	public void delete(Long id);
	public TablePage<JudgmentDTO> findPage(Specification<Judgment> spec,Pageable pageable);
	public TablePage<Judgment> findRealPage(Specification<Judgment> spec,Pageable pageable);
	public Judgment findOne(Long id);
	public boolean isNumExist(Judgment judgment);
	public boolean isUsing(Long id);
}
